import QtQuick 2.0
import QtQuick.Controls 2.5

import "../../../commonUI"
import "../../../basic"

// 常规
Item {
    anchors.left: parent.left
    anchors.right: parent.right
    height: 400
    Label {
        id: counterTitleLabel
        text: qsTr("常规")
        font.pixelSize: 22
        font.bold: true
        font.family: "黑体"
        anchors.left: parent.left
        color: "white"
    }
    Label {
        id: fontSelect
        text: qsTr("字体选择")
        font.pixelSize: 18
        font.bold: true
        font.family: "黑体"
        color: "#E8E8E9"
        anchors.left: counterTitleLabel.right
        anchors.verticalCenter: counterTitleLabel.verticalCenter
        anchors.leftMargin: 150
    }
    Label {
        text: qsTr("(如果字体显示不清晰，请在控制面板-字体设置中启动系统 Clear Type 设置)")
        font.pixelSize: 18
        font.family: BasicConfig.commFont
        color: "#89898D"
        anchors.left: fontSelect.right
        anchors.verticalCenter: fontSelect.verticalCenter
    }

    CustomComboBox {
        id: fontSelectorCbx
        width: 150
        height: 30
        anchors.left: fontSelect.left
        anchors.top: fontSelect.bottom
        anchors.topMargin: 20
    }
    Column {
        id: commonOtherSettingColumn
        anchors.left: fontSelect.left
        anchors.right: parent.right
        anchors.top: fontSelectorCbx.bottom
        anchors.topMargin: 40
        anchors.bottom: parent.bottom
        spacing: 40
        Repeater {
            model: [
                "开机自动运行",
                "将Jtom音乐设置为默认播放器",
                "开启GPU加速(若软件黑屏，请关闭GPU加速尝试解决)",
                "禁用动画效果(减少部分资源占用)",
                "禁用系统缩放比例(减少部分资源占用)\n*高清屏适配，禁用后，建议重启软件"
            ]
            CustomCheckBox {
                text: modelData
            }
        }
    }
    CustomPliteLine {
    }
}
